package com.lpf.common;

import lombok.Data;

import java.util.Optional;

// 注意：Optional 不能被序列化
@Data
public class NewMan {

    private Optional<Goddess> goddess = Optional.empty();

    private Goddess god;

    public Optional<Goddess> getGod() {
        return Optional.of(god);
    }

    public NewMan() {
    }

    public NewMan(Optional<Goddess> goddess) {
        this.goddess = goddess;
    }

    public Optional<Goddess> getGoddess() {
        return goddess;
    }

    public void setGoddess(Optional<Goddess> goddess) {
        this.goddess = goddess;
    }

}
